<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html lang="true">
<head>  
  <title>角色管理/分配权限</title>
  <%@ include file="../link_script.jsp" %>
</head>
<body> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" class="STYLE32">权限分配</td>
          </tr>
          <html:form action="role.do?method=assignFunction_Do">
          <tr>
            <td class="STYLE11"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
            <logic:notEmpty name="functionList">
              <logic:iterate id="var" name="functionList">
              <c:if test="${var.functionParentID==-1||var.functionParentID==1}">
              <tr>
                <td class="STYLE11" width="2%"><input type="checkbox" name="ids" value="${var.functionID}" ${var.isSelected} /></td>
                <td class="STYLE31" width="12%">&nbsp;${var.functioName }</td>
                <logic:notEmpty name="list">
                  <logic:iterate id="l" name="list">
                  <c:if test="${l.functionParentID==var.functionID&&l.functionParentID!=1}">
                    <td class="STYLE11">
                    <input type="checkbox" name="ids" value="${l.functionID}" ${l.isSelected} />&nbsp;${l.functioName }<br/></td>
                  </c:if>
                  </logic:iterate>
                </logic:notEmpty>
              </tr>
              <tr>
                <td class="STYLE11" width="5"><html:hidden property="roleID" value="${roleID }"/></td>
                <td class="STYLE11" width="*"><hr width="100%" color="#b5d6e6" /></td>
              </tr>
              </c:if>
              </logic:iterate>
            </logic:notEmpty>
            </table></td>
          </tr>
          <tr>
            <td class="STYLE12"><html:submit value="提交"/><html:reset value="取消"/></td>
          </tr>
          </html:form>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../no_page.jsp"%>
</table>
</body>
</html:html>
